package lab02.test35;

/**
 * Created by dell on 2017/11/19.
 */
public class Test {
    public static void main(String[] args) {
        Object monthsalary;
        Manager m=new Manager(" 张三",10000.0);
        Salesman s=new Salesman(" 李四",10,50,30);
        Worker w=new Worker(" 王五",30,100);

        System.out.println("经理"+m.getName()+"的工资为："+m.computeSalary());
        System.out.println("销售人员"+s.getName()+"的工资为:"+s.computeSalary());
        System.out.println("工人"+w.getName()+"的工资为:"+w.computeSalary());
    }
}
